<template>
  <el-form
    :inline="true"
    :model="listQuery"
    class="demo-form-inline"
    size="small"
  >
    <el-form-item label="搜索内容">
      <el-input
        v-model="listQuery.test"
        placeholder="请输入搜索内容"
      ></el-input>
    </el-form-item>
    <el-form-item label="出发地">
      <el-input v-model="listQuery.test" placeholder="请输入出发地"></el-input>
    </el-form-item>
    <el-form-item label="目的地">
      <el-input v-model="listQuery.test" placeholder="请输入目的地"></el-input>
    </el-form-item>
    <el-form-item label="用车类型">
      <Multiple :ck-list="usedCarTypes" text="全部" types="default" />
    </el-form-item>
    <el-form-item label="货源状态">
      <Multiple :ckList="supplyTypes" text="全部" types="default" />
    </el-form-item>
    <el-form-item label="日期">
      <el-date-picker
        v-model="listQuery.test"
        type="daterange"
        range-separator="至"
        start-placeholder="开始日期"
        end-placeholder="结束日期"
      >
      </el-date-picker>
    </el-form-item>
    <el-form-item>
      <el-button type="primary" @click="onSubmit">查询</el-button>
    </el-form-item>
  </el-form>
</template>

<script>
import { usedCarTypes, supplyTypes } from '@/config/index'

const listQuery = {

};

export default {
  data () {
    return {
      listQuery: Object.assign({}, listQuery),
      usedCarTypes: usedCarTypes,
      supplyTypes: supplyTypes,
    }
  },
  methods: {
    onSubmit () {

    }
  },
}
</script>

<style scoped>
</style>
